const { createProxyMiddleware } = require('http-proxy-middleware')
module.exports = function (app) {
    app.use(
        '/api', // 指定需要转发的请求
        createProxyMiddleware({
            // target: 'http://49.232.215.167:8101',//服务器的地址
            target:"https://creationapi.shbwyz.com",
            // target: '',
            // target: 'http://101.201.45.200',
            changeOrigin: true,
            pathRewrite: {
                '^/api': '/api'
            }
        })
    );
}

